import request from '@/utils/request'

export function buyGoods (commodityId: string, userId: string, goodsPrice: number) {
  return request({
    url: 'purchaseCommodityByCommodityId',
    method: 'post',
    params: {
      commodityId,
      userId,
      goodsPrice
    }
  })
}
